/*
 * @Description: 
 * @Version: 1.0
 * @Autor: ziwei
 * @Date: 2021-06-30 09:45:32
 * @LastEditors: ziwei
 * @LastEditTime: 2021-09-27 16:48:59
 */
import { createRouter,createWebHistory} from "@/vue-router";
import Home from "../views/Home.vue";
import About from "../views/About.vue";

const routes = [
  {
    path:'/',
    name:'Home',
    component:Home,
    children:[
      {path:'a',component:{render:()=><h1>a页面</h1>}},
      {path:'b',component:{render:()=><h1>b页面</h1>}}
    ]
  },{
    path:'/about',
    name:'About',
    component:About
  }
]

const router = createRouter({
  history:createWebHistory(),
  routes
})

export default router